package org.hypnus.e.engine.config;

import java.util.ArrayList;
import java.util.List;



public class ServiceNode{
	
	private ServiceConfig parent ;
	
	private String name ;
	
	private String transaction ;
	
	private String handler ;
	
	private List<BindingNode> lstBdgNode ;
	
	private List<ForwardNode> lstFrdNode ;

	public String getHandler() {
		return handler;
	}

	public void setHandler(String handler) {
		this.handler = handler;
	}

	public List<BindingNode> getLstBdgNode() {
		return lstBdgNode;
	}

	public void addBdgNode(BindingNode node) {
		if(lstBdgNode==null){
			lstBdgNode = new ArrayList<BindingNode>(2) ;
		}
		lstBdgNode.add(node) ;
	}

	public List<ForwardNode> getLstFrdNode() {
		return lstFrdNode;
	}

	public void addFrdNode(ForwardNode node) {
		if(lstFrdNode==null){
			lstFrdNode = new ArrayList<ForwardNode>(2) ;
		}
		lstFrdNode.add(node) ;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public ServiceConfig getParent() {
		return parent;
	}

	public void setParent(ServiceConfig parent) {
		this.parent = parent;
	}

	public String getTransaction() {
		return transaction;
	}

	public void setTransaction(String transaction) {
		this.transaction = transaction;
	}
	
}
